<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // async function timeout(){
        //     return "hello async"
        // }
        // timeout();
        // alert("我堵上你们");
        // console.log("我是后面的");
        let getData = new Promise(function(resolve){
            let data = "string data";
            resolve(data);
        })
        async function showData(){
            let data = await getData;
            console.log(data);
        }
        showData();
    </script>
</body>
</html>